package in.co.codedoc.cg;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Set;

import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import com.sun.mirror.apt.AnnotationProcessorFactory;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;

public class CGAnnotationProcessorFactory implements AnnotationProcessorFactory
{
	public AnnotationProcessor getProcessorFor(
			Set<AnnotationTypeDeclaration> annotations,
			AnnotationProcessorEnvironment env)
	{
		return new CGAnnotationProcessor(env);
	}

	public Collection<String> supportedAnnotationTypes()
	{
		return supportedTypes;
	}

	public Collection<String> supportedOptions()
	{
		return supportedOptions;
	}

	private static final Collection<String> supportedTypes = new ArrayList<String>();
	private static final Collection<String> supportedOptions = new ArrayList<String>();
	static
	{
		supportedTypes.add("*");
	}
}
